using System;
using System.Collections.Generic;
using System.Text;

namespace SharpMud.Text.Formatting.BuiltIn
{
    public class SetTextNormal : ITextFormatEffect
	{
        #region ITextFormatEffect Members

        public string Render(SharpMud.Net.Telnet.Session.TelnetSessionBase telnetSession)
        {
            if (telnetSession.UseMXP)
            {
                return this.ToMXP();
            }
            else if (telnetSession.UseANSI)
            {
                return this.ToANSI();
            }
            else
            {
                return String.Empty;
            }
        }

        public string ToANSI()
        {
            //TODO: Make sure colors are rest as well ;-)
            return Net.Telnet.ANSI.Utility.SetTextAttributes(Net.Telnet.ANSI.ExtendedTextAttribute.Normal);
        }

        public string ToMXP()
        {
            //TODO: Reset text coloration and formatting
            throw new NotImplementedException();
        }
        #endregion
	}
}
